﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using ProjectBase.Core;
using ProjectBase.Mvc.Views;
using ProjectBase.Mvc.Models;

namespace $safeprojectname$.Core.Mvc
{
    [TestClass]
    public class FileCoreResultTest : TestBase
    {
        [TestMethod]
        public void TestContract()
        {
            Exception exception = null;
            try
            {
                var fr = new FileCoreResult(new ExportModel());
                fr.ExecuteResult(null);
            }
            catch (Exception ex)
            {
                exception = ex;
            }
            Assert.IsTrue(exception.Is());
        }

        [TestMethod]
        public void TestType()
        {
            Type type = typeof(IFilter<>).MakeGenericType(typeof(int));
            var abc = type.Name;
        }

        #region Additional test attributes
        //
        // You can use the following additional attributes as you write your tests:
        //
        // Use ClassInitialize to run code before running the first test in the class
        // [ClassInitialize()]
        // public static void MyClassInitialize(TestContext testContext) { }
        //
        // Use ClassCleanup to run code after all tests in a class have run
        // [ClassCleanup()]
        // public static void MyClassCleanup() { }
        //
        [TestInitialize]
        public override void MyTestInitialize()
        {
            base.MyTestInitialize(); // Use TestInitialize to run code before running each test
        }

        [TestCleanup]
        public override void MyTestCleanup()
        {
            base.MyTestCleanup(); // Use TestCleanup to run code after each test has run
        }
        #endregion
    }
}
